/**
 * 提示modal页面
 * wangmei
 */
import React, { Component } from 'react';
import { Row, Col, Button, Modal, Icon  } from 'antd';
require('../systemManager/customer.css');

class VersioninfoTipModal extends Component{

    render(){
        const { showText, showModalFunc, state } = this.props;

        return(
            <Modal 
                visible={true}
                width="30%"
                title='导出提示'
                footer={null}
                maskClosable={false}
                onCancel={()=>showModalFunc(false, "" , true)}
            >
                <Row type="flex" justify="center">
                    <Icon type={state?"check-circle":"exclamation-circle"} className={"conform-icon"} 
                        style={{ color: state?"#008000":"red"}}/>
                    <text>{showText}</text>
                </Row>
                <Row type="flex" justify="center">
                    <Button type="primary" className="conform-button" onClick={()=>showModalFunc(false, "" , true)}>确定</Button>
                </Row>
            </Modal>
        )
    }
}

export default VersioninfoTipModal